using System;
using DataEntities.Base;

namespace DataEntities
{
    public class HistoryCommonReceiptsData:BusinesObjectBase
    {
        private Dogovor _dogovor;
        private DateTime _rDate;
        private int _rCount;
        private int _rSumma;

        public virtual Dogovor Dogovor { get { return _dogovor; } set { _dogovor = value; } }
        public virtual DateTime Rdate { get { return _rDate; }set{_rDate=new DateTime(value.Year,value.Month,value.Day);} }
        public virtual int Rcount { get { return _rCount; } set { _rCount = value; } }
        public virtual int Rsumma { get { return _rSumma; } set { _rSumma = value; } }

        protected HistoryCommonReceiptsData():base(0){}

        public HistoryCommonReceiptsData(DateTime date,int count,int summa,Dogovor dogovor):this(0,date,count,summa,dogovor){}

        public HistoryCommonReceiptsData(int id,DateTime rDate,int rCount,int rSumma,Dogovor dogovor):base(id)
        {
            _rDate = rDate;
            _rCount = rCount;
            _rSumma = rSumma;
            _dogovor = dogovor;
        }
    }
}